package com.dl.mall.entity.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author DL
 * @create 2022-04-13 19:47
 */
@Accessors(chain = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "Order",description = "订单实体类")
public class Order implements Serializable {
   /*   @JsonSerialize(using= ToStringSerializer.class)*/

   @ApiModelProperty(value = "订单id",example = "")
   private String orderId;
   @ApiModelProperty(value = "用户id",example = "")
   private String userId;
   @ApiModelProperty(value = "总金额",example = "")
   private BigDecimal totalAmount;
   @ApiModelProperty(value = "地址id",example = "")
   private String addressId;
   @ApiModelProperty(value = "订单状态",example = "")
   private Integer orderState;
   @ApiModelProperty(value = "创建时间",example = "")
   private Timestamp createTime;
   @ApiModelProperty(value = "更新时间",example = "")
   private Timestamp updateTime;

}
